<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title></title>
<#include "head.ftl" />
</head>
<body>
<div class="body-box">
<div class="rhead">
	<div class="rpos">当前位置: 系统通知 - 列表</div>
	<form class="ropt">
		<input type="button" value="添加" onclick="location.href='${st.domain}/notice/add'"/>
	</form>
	<div class="clear"></div>
</div>
<div style="padding:10px;">
	<div>
	<form id="search_from">
		<input type="text" name="searchWord" value="${searchWord}" placeholder="标题、摘要">
		<input type="submit" value="查找">
	</form>
	</div>
	<div class="clear"></div>
</div>
<form id="tableForm" method="post">
<table class="pn-ltable" style="" width="100%" cellspacing="1" cellpadding="0" border="0">
<thead class="pn-lthead"><tr>
	<th width="20"><input type='checkbox' onclick='Pn.checkbox("ids",this.checked)'/></th>
	<th>ID</th>
	<th>标题</th>
	<th>摘要</th>
	<th>添加时间</th>
	<th>操作选项</th></tr></thead>
<tbody  class="pn-ltbody">
<#list noticeList as notice>
<tr>
	<td><input type='checkbox' name='ids' value='1'/></td>
	<td>${notice.noticeId}</td>
	<td>${notice.title}</td>
	<td>${notice.summary}</td>
	<td>${notice.addTime?number_to_datetime}</td>
	<td align="center"><a href="${st.domain}/notice/edit?noticeId=${notice.noticeId}" class="pn-opt">修改</a>&nbsp;<a href="javascript:;" class="pn-opt" id="del_notice_${notice.noticeId}">删除</a></td>
</tr>
</#list>
</tbody>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td align="center" class="pn-sp">
	<div id="pageLink" class="pageLinks">${pageLink.linkString}</div>
</td></tr></table>
</form>
</div>
</body>
<script type="text/javascript">

	// 事件：删除通知
	$("[id^='del_notice_']").click(function(){
		var noticeId = $(this).attr("id").replace(/del_notice_/g, "");
		if(confirm("确定要删除此通知吗?")){
			$(this).attr("href", g_domain + "/notice/delDo?noticeId=" + noticeId);
		}
	});

</script>
</html>